const getters = {
  sidebar: state => state.app.sidebar,
  device: state => state.app.device,
  topmenu: state => state.app.topmenu,
  subroutes: state => state.app.subroutes,
  token: state => state.user.token,
  avatar: state => state.user.avatar,
  name: state => state.user.name,
  userdepart: state => state.user.userdepart,
  unionid: state => state.user.unionid,
  modules: state => state.user.modules,
  unitname: state => state.user.unitname,
  unitid: state => state.user.unitid,
  userUnit: state => state.user.userUnit,
  addRouters: state => state.permission.addRouters,
  permission_routers: state => state.permission.routers,
  todo: state => state.app.todo
}
export default getters
